(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
const listeners = new Set(); | |
const addSubscriber = (res) => { | |
res.writeHead(200, { | |
"Content-Type": "text/event-stream", | |
Connection: "keep-alive", | |
"Cache-Control": "no-cache", | |
}); | |
listeners.add(res); | |
}; |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
Recently, during the migration to React 17, I had a problem between event listeners handled by React and one added document manually. It was due to this part on the React 17 release note.
At this moment I understood that I had a misconception of how React handles event listener. So I decided to explore the React code to understand how it works.
Before going deep in the React codebase, I would like to explain what was in my head about the management of event listeners.
For example when I write this simple code:
// Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
#ifndef ComputedStyleBase_h | |
#define ComputedStyleBase_h | |
#include "core/style/ComputedStyleConstants.h" | |
#include "core/CoreExport.h" | |
#include "core/style/DataRef.h" |